/***************************************************************************
 *   Copyright (C) 2009 by Geoffrey McRae   *
 *   geoff@spacevs.com   *
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 *   This program is distributed in the hope that it will be useful,       *
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
 *   GNU General Public License for more details.                          *
 *                                                                         *
 *   You should have received a copy of the GNU General Public License     *
 *   along with this program; if not, write to the                         *
 *   Free Software Foundation, Inc.,                                       *
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
 ***************************************************************************/
#ifdef VIDEO_GTK
#include "../renderer.h"
#include "../../common/debug.h"
#include <stdlib.h>

void	*mpr_video_gtk_new      (void *data);
void	mpr_video_gtk_free      (void *data);
bool	mpr_video_gtk_open      (void *data, unsigned int width, unsigned int height, unsigned int actual_width, unsigned int actual_height, unsigned int pix_fmt);
void	mpr_video_gtk_close     (void *data);
bool	mpr_video_gtk_queue_new (void *data, AVFrame *pFrame, void **storage);
void	mpr_video_gtk_queue_free(void *data, AVFrame *pFrame, void **storage);
bool	mpr_video_gtk_queue     (void *data, AVFrame *pFrame, void **storage);
bool	mpr_video_gtk_display   (void *data, void **storage);
void	mpr_video_gtk_drop      (void *data, void **storage);

DEFINE_VIDEO_RENDERER(PLAYER_VIDEO_GTK,
	mpr_video_gtk_new,
	mpr_video_gtk_free,
	mpr_video_gtk_open,
	mpr_video_gtk_close,
	mpr_video_gtk_queue_new,
	mpr_video_gtk_queue_free,
	mpr_video_gtk_queue,
	mpr_video_gtk_display,
	mpr_video_gtk_drop,
	1
);
#endif